﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Invoicing.Resources
{
    public partial class ResourceEdit : System.Web.UI.Page
    {
        private ZY.Model.Tab_Power _model;

        public ZY.Model.Tab_Power Model
        {
            get { return _model; }
            set { _model = value; }
        }

        private DataTable _dataitems;

        public DataTable Dataitems
        {
            get { return _dataitems; }
            set { _dataitems = value; }
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            ZY.BLL.Tab_Power dal = new ZY.BLL.Tab_Power();
            int datasum = dal.GetAllList().Tables[0].Rows.Count;
            if (datasum > 0)
            {
                Dataitems = dal.GetAllList().Tables[0];
            }
           
            if (Request["rid"]!=null)
            {
               
                Model = dal.GetModel(int.Parse(Request["rid"].ToString()));

            }





        }
    }
}